class Project < ActiveRecord::Base
  attr_accessible :countries, :description, :image_link, :name, :program, :registration_link, :exchange, :summary, :photo
  
  	has_attached_file :photo,
                    :url  => "/assets/events/:id/:style/:basename.:extension",
                    :path => ":rails_root/public/assets/events/:id/:style/:basename.:extension"

  validates_attachment_size :photo, :less_than => 5.megabytes
  validates_attachment_content_type :photo, :content_type => ['image/jpeg', 'image/png']
  
end
